package com.springboot.springbootlogindemo.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("music_collection")
public class MusicCollection implements Serializable {


    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 歌曲id
     */
    private Long songId;

    /**
     * 歌单id
     */
    private Long songListId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;



    public MusicCollection(Long songId,Long songListId){
        this.songId=songId;
        this.songListId=songListId;
    }

    public MusicCollection(){}
}
